package com.czh.controller;

import com.czh.domain.ResponseResult;
import com.czh.domain.vo.LinkShowVo;
import com.czh.service.LinkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
/**
 * @author caozaihui
 */
@RestController
@RequestMapping("/link")
public class LinkController {

    @Autowired
    private LinkService linkService;

    @GetMapping("/getAllLink")
    public ResponseResult<List<LinkShowVo>> getAllLink(){
        return linkService.getAllLink();
    }
}